#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
const int N = 1e3 + 10;
int n;
int main()
{
	while (cin >> n) {
		int t = n;
		vector<int>ans;
		for (int i = 2; i * i <= n; i++) {
			bool f = 0;
			while (n % i == 0) {
				n /= i;
				ans.push_back(i);
			}
		}
		if (n > 1)ans.push_back(n);
		sort(ans.begin(), ans.end());
		cout << t << " = ";
		if (ans.size() == 1)cout << ans[0] << endl;
		else {
			cout << ans[0];
			int len = ans.size();
			for (int i = 1; i < len; i++) {
				cout << " * " << ans[i];
			}
			cout << endl;
		}
	}
	return 0;
}